<div class="ui-g-12 p-20">
  <p-panel headerClass="bg-none" marginHeight="80"  [showScroll]="true" >
    <p-header>
      <div class="text-right p-6-0">
        <span class="border-l-1a8fe8 p-l-8 pull-left m-t-8">节点信息</span>
        <!--<button pButton type="button" (click)="back()" label="返回" class="btn btn-secondary"></button>-->
        <button pButton type="button" (click)="edit()" label="编辑" class="btn-secondary"></button>
      </div>
    </p-header>

    <div class="table-row">
      <div class="table-cell width-150 opacity06 text-right p-l-25">
        编号：
      </div>
      <div class="table-cell">
        {{nodeManage.code}}
      </div>
    </div>
    <div class="table-row">
      <div class="table-cell width-150  opacity06 text-right p-l-25">
        名称：
      </div>
      <div class="table-cell">
        {{nodeManage.name}}
      </div>
    </div>
    <div class="table-row">
      <div class="table-cell width-150  opacity06 text-right p-l-25">
        简称：
      </div>
      <div class="table-cell">
        {{nodeManage.shortName}}
      </div>
    </div>
    <div class="table-row">
      <div class="table-cell width-150 opacity06 text-right p-l-25">
        序号：
      </div>
      <div class="table-cell">
        {{nodeManage.sortNum}}
      </div>
    </div>


    <div class="table-row">
      <div class="table-cell width-150 opacity06  text-right p-l-25">
        是否预警：
      </div>
      <div class="table-cell">
        {{nodeManage.isWarning ? '是' : '否'}}
      </div>
    </div>
    <div class="table-row">
      <div class="table-cell width-150 opacity06  text-right p-l-25">
        预警天数：
      </div>
      <div class="table-cell">
        {{nodeManage.isWarning ? nodeManage.warningDays ? nodeManage.warningDays + '天' : '' : ''}}
      </div>
    </div>

    <div class="table-row">
      <div class="table-cell width-150 opacity06  text-right p-l-25">
        是否监理确认：
      </div>
      <div class="table-cell">
        {{nodeManage.isSupervisorConfirm ? '是' : '否'}}
      </div>
    </div>
    <div class="table-row">
      <div class="table-cell width-150 opacity06  text-right p-l-25">
        自动确认天数：
      </div>
      <div class="table-cell">
        {{nodeManage.isSupervisorConfirm ? nodeManage.confirmDays ? nodeManage.confirmDays + '天' : '' : ''}}
      </div>
    </div>

    <div class="table-row">
      <div class="table-cell width-150 opacity06  text-right p-l-25">
        状态：
      </div>
      <div class="table-cell">
        {{nodeManage.isEffect ? '启用' : '禁用'}}
      </div>
    </div>

    <div class="b-b-ebebeb">
    </div>

    <div class="table-row">
      <div class="table-cell  width-150 text-right p-l-25">
        工艺：
      </div>
    </div>
    <div class="dataTable">
      <p-dataTable [value]="technologyList" [lazy]="true" [paginator]="false">
        <p-column *ngFor="let col of colsConStandard" [field]='col.field' [header]='col.header' [style]="{'width':col.width}">
          <ng-template let-index="rowIndex" let-data="rowData" pTemplate="body" *ngIf="col.tem">
            <div *ngIf="col.field === 'technologyDetails'">
              <div *ngFor="let technology of data.technologyDetails; let i = index" class="flex-td">
                <span>{{i+1}}.{{technology.content}}</span>
              </div>
            </div>
          </ng-template>
        </p-column>
      </p-dataTable>
    </div>

    <div class="b-b-ebebeb">
    </div>

    <div class="table-row">
      <div class="table-cell  width-150  text-right p-l-25">
        验收标准：
      </div>
    </div>
    <div class="dataTable">
      <p-dataTable [scrollable]="true" [value]="standardList" [lazy]="true" [paginator]="false" scrollable="true" scrollHeight="200px">
        <p-column *ngFor="let col of colsCheckStandard" [field]='col.field' [header]='col.header' [style]="{'width':col.width}">
          <ng-template let-index="rowIndex" let-data="rowData" pTemplate="body" *ngIf="col.tem">
            <div *ngIf="col.field === 'isReferenceCheckItem'">
              {{data.isReferenceCheckItem ? '是' : '否'}}
            </div>
            <div *ngIf="col.field === 'isRequestPassItem'">
              {{data.isRequestPassItem ? '是' : '否'}}
            </div>
          </ng-template>
        </p-column>
      </p-dataTable>
    </div>


    <div class="b-b-ebebeb">
    </div>

    <div class="table-row">
      <div class="table-cell  width-150  text-right p-l-25">
        关联定额：
      </div>
    </div>
    <div class="dataTable">
      <div>
        <p-dataTable [value]="quotaList" #td [lazy]="true" [paginator]="false" [editable]="true">
          <p-column *ngFor="let col of quotaCol" [field]='col.field' [header]='col.header' [editable]="col.editable" [style]="{'width':col.width}">
            <ng-template let-index="rowIndex" let-data="rowData" pTemplate="body" *ngIf="col.dic">
              <span> {{storage.dicFilter(col.dic,data[col.field])}} </span>
            </ng-template>
          </p-column>
        </p-dataTable>
      </div>
    </div>

  </p-panel>

</div>
